package it.cagiobox.fileutility.bo;

import java.util.List;

public class MatchingCol {
	private Integer _lineNumber;
	private String _key;
	private List<String> _values;

	public void SetMatchingCol(Integer lineNumber, String key,
			List<String> values) {
		_lineNumber = lineNumber;
		_key = key;
		_values = values;
	}

	public String getLineNumber() {
		if (_lineNumber != null) {
			return _lineNumber.toString();
		} else {
			return "";
		}
	}

	public String getKey() {
		if (_key != null) {
			return _key;
		} else {
			return "";
		}
	}
        
        public void setKey(String key){
            _key = key;
        }

	public String getValues() {
		if (_values != null) {

			String strOut = "";
			for (String val : _values) {
				strOut += "," + val;
			}
			
			//discard first delimiter
			return strOut.substring(1, strOut.length());
		} else {
			return "";
		}
	}
        
        public void setValues(List<String> values){
            _values = values;
        }
        

}
